DataSource for Entity Framework in WPF
C1.LiveLinq Namespace / LiveViewExtensions Class / AsLive Method / AsLive<T>(IObservableSource<T>) Method
The type of the elements in the collection.
The IObservableSource<T> collection to expose as a view.

In This Topic
    AsLive<T>(IObservableSource<T>) Method
    In This Topic
    Creates a view based on the specified IObservableSource<T> collection.
    Syntax
    'Declaration
     
    Public Overloads Shared Function AsLive(Of T)( _
       ByVal source As IObservableSource(Of T) _
    ) As View(Of T)
    public static View<T> AsLive<T>( 
       IObservableSource<T> source
    )

    Parameters

    source
    The IObservableSource<T> collection to expose as a view.

    Type Parameters

    T
    The type of the elements in the collection.

    Return Value

    A view that contains the same elements as the IObservableSource<T>
    Remarks
    The resulting view may have its elements ordered differently than they are ordered in the source collection. Correspondingly, views built on this resulting view (for example, if you filter it with Where) will not preserve the source order either. If you need to preserve the source order, consider using the other AsLive overload where you can specify to what extent you need the order to be preserved.
    See Also